import { ref, computed } from "vue";
import { defineStore } from "pinia";

export const useExpandStore = defineStore(
  "expand",
  () => {
    let isExpand = ref(false);

    let change = () => {
      isExpand.value = !isExpand.value;
    };

    return { isExpand, change };
  },
  {
    persist: {
      storage: sessionStorage,
    },
  }
);
